/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.breeze.dao;

import com.breeze.entity.Tuserbill;
import java.util.List;

/**
 *
 * @author huateng
 */
public class UserbillDao extends BaseDao{
    
    private final String query_userbill="tuserbill.selectByPage";
    private final String update_userbill="tuserbill.updateRecords";
    private final String insert_userbill="tuserbill.insertObject";
    private final String delete_userbill="tbill.deleteByCondition";
    
    public int deleteUserbill(Tuserbill bill){
        return delete(delete_userbill, bill);
    }
    
    public Tuserbill queryForuserbill(Tuserbill userbill){
        return (Tuserbill)queryForObject(query_userbill, userbill);
    }
    
    public List queryForuserbillList(Tuserbill userbill){
        return queryForList(query_userbill, userbill);
    }
    
    public int updateuserbill(Tuserbill userbill){
        return update(update_userbill, userbill);
    }
    
    public Tuserbill inserTuserbill(Tuserbill userbill){
        return (Tuserbill)insert(insert_userbill, userbill);
    }
}
